<div class="container" style="line-height: 40px;">
  <div class="row" >
    <div class="col-sm">
      <span class="hengxian">{{ $model->user?$model->user->name:'' }}</span>
    </div>
    <div class="col-sm">
      身高<span class="hengxian">{{ $model->height }}</span>
    </div>
    <div class="col-sm">
      体重<span class="hengxian">{{ $model->weight }}</span>
    </div>
    <div class="col-sm">
      检查时间<span class="hengxian">{{ $model->write_date }}</span>
    </div>
  </div>
</div>
<table class="table table-bordered table-hover text-center ">
    <thead class="table-primary">
    <tr>
      <th  scope="col" colspan="3" class="align-middle">检查项目</th>
      <th  scope="col" class="align-middle">DS</th>
      <th scope="col" class="align-middle">DC</th>
      <th scope="col" class="align-middle">A</th>
    </tr>
  </thead>
  <tbody>
    <tr>
        <td rowspan="4" class="align-middle">视力</td>
        <td rowspan="2" class="align-middle">裸眼视力</td>
        <td class="align-middle">右</td>
        <td class="align-middle">{{ $model->shili_luoyan_right }}</td>
        <td class="align-middle"></td>
        <td class="align-middle"></td>
    </tr>
    <tr>
        <td class="align-middle">左</td>
        <td class="align-middle">{{ $model->shili_luoyan_left }}</td>
        <td class="align-middle"></td>
        <td class="align-middle"></td>
    </tr>

    <tr>
        <td rowspan="2" class="align-middle">矫正视力</td>
        <td class="align-middle">右</td>
        <td class="align-middle">{{ $model->shili_jiaozheng_right }}</td>
        <td class="align-middle"></td>
        <td class="align-middle"></td>
    </tr>
    <tr>
      <td class="align-middle">左</td>
        <td class="align-middle">{{ $model->shili_jiaozheng_left }}</td>
        <td class="align-middle"></td>
        <td class="align-middle"></td>
    </tr>
    <tr>
        <td rowspan="4" class="align-middle">验光</td>
        <td rowspan="2" class="align-middle">电脑验光</td>
        <td class="align-middle">右</td>
        <td class="align-middle">{{ \Illuminate\Support\Arr::get($model->yanguang_diannao_right, 'value', '') }}</td>
        <td class="align-middle">{{ \Illuminate\Support\Arr::get($model->yanguang_diannao_right, 'ds', '') }}</td>
        <td class="align-middle">{{ \Illuminate\Support\Arr::get($model->yanguang_diannao_right, 'dc', '') }}</td>
    </tr>
    <tr>
        <td class="align-middle">左</td>
        <td class="align-middle">{{ \Illuminate\Support\Arr::get($model->yanguang_diannao_left, 'value', '') }}</td>
        <td class="align-middle">{{ \Illuminate\Support\Arr::get($model->yanguang_diannao_left, 'ds', '') }}</td>
        <td class="align-middle">{{ \Illuminate\Support\Arr::get($model->yanguang_diannao_left, 'dc', '') }}</td>
    </tr>
    <tr>
        <td rowspan="2" class="align-middle">综合验光</td>
        <td class="align-middle">右</td>
        <td class="align-middle">{{ \Illuminate\Support\Arr::get($model->yanguang_zonghe_right, 'value', '') }}</td>
        <td class="align-middle">{{ \Illuminate\Support\Arr::get($model->yanguang_zonghe_right, 'ds', '') }}</td>
        <td class="align-middle">{{ \Illuminate\Support\Arr::get($model->yanguang_zonghe_right, 'dc', '') }}</td>
    </tr>
    <tr>
        <td class="align-middle">左</td>
        <td class="align-middle">{{ \Illuminate\Support\Arr::get($model->yanguang_zonghe_left, 'value', '') }}</td>
        <td class="align-middle">{{ \Illuminate\Support\Arr::get($model->yanguang_zonghe_left, 'ds', '') }}</td>
        <td class="align-middle">{{ \Illuminate\Support\Arr::get($model->yanguang_zonghe_left, 'dc', '') }}</td>
    </tr>
    <tr>
        <td rowspan="2" colspan="2" class="align-middle">旧镜焦度计检查</td>
        <td class="align-middle">右</td>
        <td class="align-middle">{{ \Illuminate\Support\Arr::get($model->jiujing_jiaodu_right, 'value', '') }}</td>
        <td class="align-middle">{{ \Illuminate\Support\Arr::get($model->jiujing_jiaodu_right, 'ds', '') }}</td>
        <td class="align-middle">{{ \Illuminate\Support\Arr::get($model->jiujing_jiaodu_right, 'dc', '') }}</td>
    </tr>
    <tr>
        <td class="align-middle">左</td>
        <td class="align-middle">{{ \Illuminate\Support\Arr::get($model->jiujing_jiaodu_left, 'value', '') }}</td>
        <td class="align-middle">{{ \Illuminate\Support\Arr::get($model->jiujing_jiaodu_left, 'ds', '') }}</td>
        <td class="align-middle">{{ \Illuminate\Support\Arr::get($model->jiujing_jiaodu_left, 'dc', '') }}</td>
    </tr>
    <tr>
        <td rowspan="2" colspan="2"  class="align-middle">眼轴</td>
        <td class="align-middle">右</td>
        <td class="align-middle">{{ $model->yanzhu_right }}</td>
        <td class="align-middle"></td>
        <td class="align-middle"></td>
    </tr>
    <tr>
        <td class="align-middle">左</td>
        <td class="align-middle">{{ $model->yanzhu_left }}</td>
        <td class="align-middle"></td>
        <td class="align-middle"></td>
    </tr>
    <tr>
        <td rowspan="2" colspan="2" class="align-middle">曲率</td>
        <td class="align-middle">右</td>
        <td class="align-middle">{{ $model->qulv_right }}</td>
        <td class="align-middle"></td>
        <td class="align-middle"></td>
    </tr>
    <tr>
        <td class="align-middle">左</td>
        <td class="align-middle">{{ $model->qulv_left }}</td>
        <td class="align-middle"></td>
        <td class="align-middle"></td>
    </tr>
    <tr>
        <td rowspan="2" colspan="2" class="align-middle">眼位</td>
        <td class="align-middle">右</td>
        <td class="align-middle">{{$model->yanwei_right }}</td>
        <td class="align-middle"></td>
        <td class="align-middle"></td>
    </tr>
    <tr>
        <td class="align-middle">左</td>
        <td class="align-middle">{{ $model->yanwei_left }}</td>
        <td class="align-middle"></td>
        <td class="align-middle"></td>
    </tr>
    <tr>
        <td rowspan="2" colspan="2" class="align-middle">眼底</td>
        <td class="align-middle">右</td>
        <td class="align-middle">{{ \App\Admin\Repositories\Config::getNameFromCache($model->yandi_right) }}</td>
        <td class="align-middle"></td>
        <td class="align-middle"></td>
    </tr>
    <tr>
        <td class="align-middle">左</td>
        <td class="align-middle">{{ \App\Admin\Repositories\Config::getNameFromCache($model->yandi_left) }}</td>
        <td class="align-middle"></td>
        <td class="align-middle"></td>
    </tr>
    <tr>
        <td rowspan="2" colspan="2" class="align-middle">色觉</td>
        <td class="align-middle">右</td>
        <td class="align-middle">{{ \App\Admin\Repositories\Config::getNameFromCache($model->sejue_right) }}</td>
        <td class="align-middle"></td>
        <td class="align-middle"></td>
    </tr>
    <tr>
        <td class="align-middle">左</td>
        <td class="align-middle">{{ \App\Admin\Repositories\Config::getNameFromCache($model->sejue_left) }}</td>
        <td class="align-middle"></td>
        <td class="align-middle"></td>
    </tr>
    
    <tr>
        <td rowspan="2" colspan="2" class="align-middle">对比敏感度</td>
        <td class="align-middle">右</td>
        <td class="align-middle">{{ $model->duibidu_right }}</td>
        <td class="align-middle"></td>
        <td class="align-middle"></td>
    </tr>
    <tr>
        <td class="align-middle">左</td>
        <td class="align-middle">{{ $model->duibidu_left }}</td>
        <td class="align-middle"></td>
        <td class="align-middle"></td>
    </tr>

    <tr>
      <td rowspan="11" class="align-middle">双眼视功能</td>
      <td class="align-middle">立体视功能</td>
      <td colspan="4" class="align-middle">{{ $model->shuangyan_liti }}</td>
    </tr>

    <tr>
        <td rowspan="2" class="align-middle">正相对调节</td>
        <td class="align-middle">右</td>
        <td class="align-middle" colspan="3">{{ \App\Admin\Repositories\Config::getNameFromCache($model->shuangyan_zhengxiang_right) }}</td>
    </tr>
    <tr>
        <td class="align-middle">左</td>
        <td class="align-middle" colspan="3">{{ \App\Admin\Repositories\Config::getNameFromCache($model->shuangyan_zhengxiang_left) }}</td>

        
    </tr>
    <tr>
        <td rowspan="2" class="align-middle">负相对调节</td>
        <td class="align-middle">右</td>
        <td class="align-middle" colspan="3">{{ \App\Admin\Repositories\Config::getNameFromCache($model->shuangyan_fuxiang_right) }}</td>
    </tr>
    <tr>
        <td class="align-middle">左</td>
        <td class="align-middle" colspan="3">{{ \App\Admin\Repositories\Config::getNameFromCache($model->shuangyan_fuxiang_left) }}</td>
    </tr>
    <tr>
        <td rowspan="2" class="align-middle">Flipper(调节灵敏度)</td>
        <td class="align-middle">右</td>
        <td class="align-middle" colspan="3">{{ $model->shuangyan_lingmindu_right }}</td>
    </tr>
    <tr>
        <td class="align-middle">左</td>
        <td class="align-middle" colspan="3">{{ $model->shuangyan_lingmindu_left }}</td>
    </tr>
    <tr>
        <td rowspan="2" class="align-middle">AMP调节幅度</td>
        <td class="align-middle">右</td>
        <td class="align-middle" colspan="3">{{ \App\Admin\Repositories\Config::getNameFromCache($model->shuangyan_tiaojie_right) }}</td>
    </tr>
    <tr>
        <td class="align-middle">左</td>
        <td class="align-middle" colspan="3">{{ \App\Admin\Repositories\Config::getNameFromCache($model->shuangyan_tiaojie_left) }}</td>
    </tr>
    <tr>
      <td rowspan="2" class="align-middle">CPM（聚散灵敏度）</td>
      <td class="align-middle">右</td>
      <td colspan="3" class="align-middle">{{ $model->shuangyan_jusan_right }}</td>
    </tr>
    <tr>
        <td class="align-middle">左</td>
        <td class="align-middle" colspan="3">{{ $model->shuangyan_jusan_left }}</td>
    </tr>

    <tr>
      <td rowspan="5" class="align-middle">方案</td>
      <td class="align-middle">光学矫正方案</td>
      <td colspan="3" class="align-middle">{{ \App\Admin\Repositories\Config::getNameFromCache($model->fangan_jiaozheng) }}</td>
    </tr>
    <tr>
      <td class="align-middle">视觉训练方案</td>
      <td colspan="3" class="align-middle">{{ \App\Admin\Repositories\Config::getNameFromCache($model->fangan_xunlian) }} <br /> {{ $model->fangan_other }}</td>
    </tr>

    <tr>
      <td class="align-middle">行为干预强化</td>
      <td colspan="3" class="align-middle" style="max-width: 100px;">{{ \App\Admin\Repositories\Config::getNameFromCache($model->ganyu) }} </td>
    </tr>

    <tr>
      <td class="align-middle">复查时间</td>
      <td colspan="3" class="align-middle">{{ $model->fu_check_date }}</td>
    </tr>
    
    
  </tbody>
</table>
<table  class="table table-bordered table-hover  ">
  <!-- 六、专业干预建议 -->
    <tr>
        <th colspan="2" class="text-center align-middle" style="font-size: 16px; height:50px">专业干预建议（视光师填写）</th>
    </tr>
    <tr class="align-middle">
        <td class="align-middle">
            <strong>1. 光学矫正方案</strong>
        </td>
        <td>{!! \Dcat\Admin\Widgets\Checkbox::make('jianyi', \App\Admin\Repositories\Config::selectOptions(pid: 447)->all())->inline()->check($model->fangan_jiaozheng) !!}</td>
    </tr>
    <tr>
        <td class="align-middle">
            <strong>2. 视觉训练方案</strong>
        </td>
        <td>{!! \Dcat\Admin\Widgets\Checkbox::make('xunlian', \App\Admin\Repositories\Config::selectOptions(pid: 454)->all())->inline()->check($model->fangan_xunlian) !!}
            <label>其他<span class="hengxian">{{ $model->fangan_other }}</span></label><br></td>
    </tr>
    <tr>
        <td class="align-middle">
            <strong>3. 行为干预强化</strong>
        </td>
        <td>{!! \Dcat\Admin\Widgets\Checkbox::make('xingwei', \App\Admin\Repositories\Config::selectOptions(pid: 464)->all())->inline()->check($model->ganyu) !!}</td>
    </tr>
</table>
<style>
  .table tr td:first-child, .table tr th:first-child{
    padding: 0;
  }
  .table td{
    height: 30px;
    line-height: 30px;
  }
  .hengxian{  text-align: center; line-height: 40px; border-bottom: 1px solid #000; padding:0 20px;}

</style>
